[DRAFT] NOT MERGING POC: Send Node.js runtime metrics via OTLP using OTel-native naming#7869
[DRAFT] NOT MERGING POC: Send Node.js runtime metrics via OTLP using OTel-native naming#7869
Conversation
Adds v8js.memory.heap.*, process.cpu.utilization, process.memory.usage, nodejs.eventloop.delay.* as OTel instruments on the existing OTLP metrics pipeline. Routes to OTLP when config.otelMetricsEnabled is true, skipping DogStatsD to avoid double-reporting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Overall package sizeSelf size: 5.46 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 661d1d6 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
- Remove unused sinon import - Remove unused DEFAULT_INTERVAL constant - Use ternary in router per lint rule - Break long lines under 120 char limit - Add trailing commas per style Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7869 +/- ##
==========================================
- Coverage 74.61% 74.27% -0.34%
==========================================
Files 768 765 -3
Lines 35659 35793 +134
==========================================
- Hits 26606 26586 -20
- Misses 9053 9207 +154
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-04-03 18:20:30 Comparing candidate commit 661d1d6 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 226 metrics, 34 unstable metrics. |
Adds the mapped metric (nodejs.eventloop.utilization) and higher percentiles. Fixes lint errors. Total: 13 OTel metrics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add assertions for nodejs.eventloop.delay.p90, p99, and nodejs.eventloop.utilization. Verify disabled state for new event loop metrics. Matches existing runtime_metrics.spec.js pattern of verifying every metric by name. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New scenario OTLP_RUNTIME_METRICS that sets DD_METRICS_OTEL_ENABLED=true alongside DD_RUNTIME_METRICS_ENABLED=true. Tests verify OTel-native metric names (dotnet.*, jvm.*, go.*, v8js.*) appear in OTLP payloads and that DD-proprietary names (runtime.dotnet.*, runtime.go.*) do not. All languages marked as missing_feature in manifests until POC PRs are merged: - .NET: DataDog/dd-trace-dotnet#8299 - Go: DataDog/dd-trace-go#4611 - Node.js: DataDog/dd-trace-js#7869 - Java: DataDog/dd-trace-java#10985 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sends v8js.memory.heap., process.cpu.utilization, process.memory.usage, nodejs.eventloop.delay. via OTLP. Related: DataDog/dd-trace-dotnet#8299
🤖 Generated with Claude Code